package com.hundsun.yr.universal.p2p.ui.activity.base;

import android.view.View.OnClickListener;

import com.hundsun.yr.universal.library.base.BaseWebActivity;
import com.hundsun.yr.universal.p2p.view.base.BaseView;

/**
 * @Title: BaseMineWebActivity.java
 * @Description: WebActivity基础类
 * @date 2016-1-13 下午6:41:58
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com
 * @replace author:
 * @replace date:
 * @version V1.0
 */
public abstract class BaseMineWebActivity extends BaseWebActivity implements BaseView {

	@Override
	public void showError(String msg, OnClickListener onClickListener) {
		toggleShowError(true, msg, onClickListener);
	}

	@Override
	public void showNetError(OnClickListener onClickListener) {
		toggleNetworkError(true, onClickListener);
	}

	@Override
	public void showLoading(String msg) {
		toggleShowLoading(true, null);
	}

	@Override
	public void hideLoading() {
		// toggleShowLoading(false, null);
		toggleHide();
	}

	@Override
	public void showEmpty(int drawableRes, String msg, OnClickListener onClickListener) {
		// TODO Auto-generated method stub
		toggleShowEmpty(true, drawableRes, msg, onClickListener);
	}

	@Override
	public void showProgress(String msg) {
		// TODO Auto-generated method stub

	}

	@Override
	public void closeProgress() {
		// TODO Auto-generated method stub

	}

	/**
	 * 是否改变状态栏背景
	 * 
	 * @return
	 */
	protected abstract boolean isApplyKitKatTranslucency();

}
